package top.hymsk.ecommerce.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 花于陌上开
 */
@Data
@Component
@ConfigurationProperties(prefix = "other.elasticsearch")  //prefix为前缀
public class ElasticSearchConfig {
    String httpHost;
    String username;
    String password;
    Integer maxResultNumber;
    Integer pageSize;
}
